<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>面向对象基础知识练习</title>
</head>
<body>
	<?php
  /**
  * 
  */
  class Person 
  {    var $name;
       var $age;
       var $sex;
     function say(){
        echo "这个人在说话";

     }
      function eat(){

     }
      function run(){
     }	
  }
   $p1=new Pers->name="zhangsan";
   echo "姓名是：".$p1->name."<br>";
   $p1->say();
   $p2=new Person();	
   
	?>
</body>
</html>